<template>
	<table>
			<tr>
				<th>ID</th>
				<th>姓名</th>
				<th>年龄</th>
				<th>性别</th>
				<th>操作</th>
			</tr>
			<tr v-for="(item,index) in stu">
				<td>{{item.id}}</td>
				<td>{{item.name}}</td>
				<td>{{item.age}}</td>
				<td>{{item.sex}}</td>
				<td>
				<button @click="$emit('toupdate',index)">更新</button>
				<button @click="$emit('delobj',index)">删除</button>
				</td>
			</tr>
		</table>	
</template>

<script>
	export default{
		name:"Show",
		props:["stu"],
		data:function(){
			return{
				
			}
		},
		methods:{
			
			}
		}
</script>

<style>
</style>